package com.example.administrator.yuejian_15.Service;

import com.example.administrator.yuejian_15.bean.SuccessBean;
import com.example.administrator.yuejiandemo.bean.BisaiBean;
import com.example.administrator.yuejiandemo.bean.HuoDongBean;
import com.example.administrator.yuejiandemo.bean.JlbClassBean;
import com.example.administrator.yuejiandemo.bean.JlbCoachBean;
import com.example.administrator.yuejiandemo.bean.JlbVideoBean;
import com.example.administrator.yuejiandemo.bean.JulebuBean;
import com.example.administrator.yuejiandemo.bean.PeixunBean;
import com.example.administrator.yuejiandemo.bean.RegisteBean;
import com.example.administrator.yuejiandemo.bean.SuccessBean;
import com.example.administrator.yuejiandemo.bean.UserInfoBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface AllService {
    //获取注册验证码
    @GET("yuejian/public/index.php/admin/api/SendRand")
    public Call<RegisteBean> getRand(@Query("phoneNumber") String phoneNumber);

    //手机注册
    @GET("yuejian/public/index.php/admin/api/PhoneRegiste")
    public Call<SuccessBean> registe(@Query("phoneNumber") String phoneNumber,
                                     @Query("rand") String rand,
                                     @Query("password") String password);
    //手机账号登录
    @GET("yuejian/public/index.php/admin/api/PhoneLogin")
    public Call<SuccessBean> login(@Query("phoneNumber") String phoneNumber,
                                   @Query("password") String password);
    //获取用户信息
    @GET("yuejian/public/index.php/admin/api/getUserById")
    public Call<UserInfoBean> getUserInfo(@Query("uid") String uid);

    //获取所有俱乐部
    @GET("yuejian/public/index.php/admin/api/getJlbList")
    public Call<List<JulebuBean>> getJulebuList();

    //获取俱乐部详情
    @GET("yuejian/public/index.php/admin/api/getJlbInfo")
    public Call<JulebuBean> getJulebuInfo(@Query("jlbid") String jlbid);

    //获取教练
    @GET("yuejian/public/index.php/admin/api/getCoachList")
    public Call<List<JlbCoachBean>> getCoachList(@Query("jlbid") String jlbid);

    //获取课程
    @GET("yuejian/public/index.php/admin/api/getJlbClass")
    public Call<List<JlbClassBean>> getClassList(@Query("jlbid") String jlbid);

    //获取视频
    @GET("yuejian/public/index.php/admin/api/getJlbVideo")
    public Call<List<JlbVideoBean>> getVideoList(@Query("jlbid") String jlbid);

    //获取大师列表
    @GET("yuejian/public/index.php/admin/api/getDashiList")
    public Call<List<JlbCoachBean>> getDashiList();

    //获取活动列表
    @GET("yuejian/public/index.php/admin/api/getHuodongList")
    public Call<List<HuoDongBean>> getHuodongList();

    //获取比赛列表
    @GET("yuejian/public/index.php/admin/api/getBisaiList")
    public Call<List<BisaiBean>> getBisaiList();

    //获取活动详情
    @GET("yuejian/public/index.php/admin/api/getHuodognInfo")
    public Call<HuoDongBean> getHuodongInfo(@Query("hdid") String hdid);


    //获取比赛详情
    @GET("yuejian/public/index.php/admin/api/getBisaiinfo")
    public Call<BisaiBean> getBisaiInfo(@Query("bsid") String bsid);

    //获取找回密码验证码
    @GET("yuejian/public/index.php/admin/api/SendRandPassword")
    public Call<RegisteBean> getRandpassword(@Query("phoneNumber") String phoneNumber);


    //找回密码
    @GET("yuejian/public/index.php/admin/api/setPhonePassword")
    public Call<RegisteBean> getpassword(@Query("phoneNumber") String phoneNumber,
                                         @Query("rand") String rand,
                                         @Query("password") String password);


    //获取入门培训
    @GET("yuejian/public/index.php/admin/api/getPeixunRm")
    public Call<List<PeixunBean>> getRmPeixun();


    //获取菜鸟培训
    @GET("yuejian/public/index.php/admin/api/getPeixunCn")
    public Call<List<PeixunBean>> getCnPeixun();

    //获取进阶培训
    @GET("yuejian/public/index.php/admin/api/getPeixunJj")
    public Call<List<PeixunBean>> getJjPeixun();

    //获取培训详情
    @GET("yuejian/public/index.php/admin/api/getPeixunInfo")
    public Call<PeixunBean> getPeixunInfo(@Query("pxid") String pxid);

    //培训报名
    @GET("yuejian/public/index.php/admin/api/addUserpxorder")
    public Call<SuccessBean> pxbm(@Query("uid") String uid,
                                  @Query("zsusername") String zsusername,
                                  @Query("pxid") String pxid,
                                  @Query("pnum") String pnum);


    //获取大师课堂列表
    @GET("yuejian/public/index.php/admin/api/getDsKt")
    public Call<List<JlbClassBean>> getDsClassList(@Query("jlbjlid") String jlbjlid);


    //获取大师视频列表
    @GET("yuejian/public/index.php/admin/api/getDsSp")
    public Call<List<JlbVideoBean>> getDsVideoList(@Query("jlbjlid") String jlbjlid);

}
